package com.tuling.signalling.player;


import com.tuling.signalling.player.handler.PlayerHandler;
import com.tuling.signalling.websocket.WebsocketServer;

public class PlayerServer {
    public void start() {
        WebsocketServer streamerServer = new WebsocketServer(18889, PlayerServer.class);
        streamerServer.setLogOpen(true);
        streamerServer.addLastChannel("playerHandler", () -> new PlayerHandler());
        streamerServer.start();
    }
}
